package com.xiu.travel.security;

import com.xiu.travel.util.api.CommonResult;
import com.xiu.travel.domain.ResPathColorDO;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FileService
{
    CommonResult<ResPathColorDO> upFile(MultipartFile file) throws Exception;

    CommonResult<List<ResPathColorDO>> upFiles(HttpServletRequest request) throws Exception;

    void downloadFile(String name, HttpServletResponse response);

    CommonResult<ResPathColorDO> picUpload(MultipartFile file,String picName) throws Exception;
}
